function AuthenCustomer(authenCustomerDto) {
	// in : AuthenCustomerBlDto
	// out: AuthenCustomerBlResultDto
	//var authenCustomerDto = new Object();
	//authenCustomerDto.LicensePlate = "123";
	//authenCustomerDto.Password = "1234";
	//authenCustomerDto.RegistrationId = "APA91bHY6wIT6x7v1Q_d3ByHbMuyF8mC5q9GGvb24ow3dBw3DHnAq4NK7Q7X0INtZA2CJt0IolVUBlf0M29PlKXTHpOkQnUpbrn8pJ8vQBMtNm5f7h3QnhqDVQ4VQwfy6M02OoTSS7SYjXZ2RMaukE9hIchZvsxU4A";

	path = "/DroidClaim/DroidClaimBL.svc/AuthenCustomer";
		
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(authenCustomerDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
}

function AddClaimRequest(claimRequestDto) {
	// in : ClaimRequestDto
	// out: ClaimRequestResultDto
	
	//var claimRequestDto = new Object();
	//claimRequestDto.SessionId = 'e4003322-56f2-43a1-a152-6b8964b60038';
	//claimRequestDto.AccImg = '_25561122174201981_ff016609-b6d7-466c-8a60-1a818d167f2a.jpg';
	//claimRequestDto.Latitude = 13.77028;
	//claimRequestDto.Longitude = 100.65367;
	//claimRequestDto.Location = '';
	
	path = "/DroidClaim/DroidClaimBL.svc/AddClaimRequest";
		
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(claimRequestDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
}

function GetAllClaimInfoForCustomer(sessionPkDto) {
	// in : SessionPkDto
	// out: List<ClaimInfoDto>
	//var sessionPkDto = new Object();
	//sessionPkDto.SessionId = '5f50c3bd-86db-411f-86f3-087a09f1a207';
		
	path = "/DroidClaim/DroidClaimBL.svc/GetAllClaimInfoForCustomer";
		
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(sessionPkDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
	
}

function Logout(sessionPkDto) {
	// in : SessionPkDto
	// out: boolean
	//var sessionPkDto = new Object();
	//sessionPkDto.SessionId = '3c84a7b5-02d6-4ff5-891d-0e8d86d16845';
	
	path = "/DroidClaim/DroidClaimBL.svc/Logout";
		
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(sessionPkDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
	
}

function GetClaimInfoForCustomer(claimInfoPKDto) {
	// in : ClaimInfoPKDto
	// out: ClaimInfoForCustomerResultDto	
	//var claimInfoPKDto = new Object();
	//claimInfoPKDto.SessionId = '3c84a7b5-02d6-4ff5-891d-0e8d86d16845';
	//claimInfoPKDto.Id = 4;

	path = "/DroidClaim/DroidClaimBL.svc/GetClaimInfoForCustomer";
	
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(claimInfoPKDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
}

function AuthenSurveyor(authenSurveyorDto) {
	// in : AuthenSurveyorDto
	// out: AuthenSurveyorResultDto
	
	//var authenSurveyorDto = new Object();
	//authenSurveyorDto.Username = 's123';
	//authenSurveyorDto.Password = '1234';
	//authenSurveyorDto.NoSurveyorData = true;
	//authenSurveyorDto.RegistrationId = 'APA91bFCth4fhCvWr-GRPieM7T-gZRB2lVPq62u4sB5B_Emb5FkqVURZv22mK9XIeeSsAU2UVEm22QpnubGKmwJsGZOTUUaRzjH1YCfwozrYDAMsjmcyGTmu99EcpvtJzAXdk29iuzuEZHZAs5ya3EXqt0Ucd1nDoMSRrK97OArs-IunD4uv0IY';
	
	path = "/DroidClaim/DroidClaimBL.svc/AuthenSurveyor";
	
	WL.Logger.debug("Successful transfer, conf code = " + JSON.stringify(authenSurveyorDto));
	
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(authenSurveyorDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
}

function UpdateSurveyorStatus(surveyorStatusDto) {
	// in : SurveyorStatusDto
	// out: UpdateSurveyorStatusResultDto
	//var surveyorStatusDto = new Object();
	//surveyorStatusDto.SessionId = '6117c872-acf3-4e02-8570-5e0db864b1b6';
	//surveyorStatusDto.Status = true;
	//surveyorStatusDto.Latitude = 13.77028;
	//surveyorStatusDto.Longitude = 100.65367;
	
	path = "/DroidClaim/DroidClaimBL.svc/UpdateSurveyorStatus";
		
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(surveyorStatusDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
	
}

function UpdateSurveyorLocation(surveyorLocationDtos) {
	// in : SurveyorLocationDto
	// out: UpdateSurveyorLocationResultDto
	//var surveyorLocationDto = new Object();
	//surveyorLocationDtos.SessionId = '6117c872-acf3-4e02-8570-5e0db864b1b6';
	//surveyorLocationDtos.Status = true;
	//surveyorLocationDtos.Latitude= 13.77028;
	//surveyorLocationDtos.Longitude = 100.65367;
	
	path = "/DroidClaim/DroidClaimBL.svc/UpdateSurveyorLocation";
		
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(surveyorLocationDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
	
}

function GetClaimInfoForSurveyor(claimInfoPKDto) {
	// in : ClaimInfoPKDto
	// out: ClaimInfoForSurveyorResultDto
	//var claimInfoPKDto = new Object();
	//claimInfoPKDto.SessionId = '3c84a7b5-02d6-4ff5-891d-0e8d86d16845';
	//claimInfoPKDto.Id = 33;
	
	path = "/DroidClaim/DroidClaimBL.svc/GetClaimInfoForSurveyor";
		
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(claimInfoPKDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
}

function SendAcceptMessage(acceptMessageBlDto) {
	// in : AcceptMessageBlDto
	// out: AcceptMessageResultBlDto
	//var acceptMessageBlDto = new Object();
	//acceptMessageBlDto.sessionId = '3c84a7b5-02d6-4ff5-891d-0e8d86d16845';
	//claimInfoPKDto.ClaimId = 33;
	
	path = "/DroidClaim/DroidClaimBL.svc/SendAcceptMessage";
	
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(acceptMessageBlDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
	
}

function SendDenyMessage(denyMessageDto) {
	// in : DenyMessageDto
	// out: DenyMessageResultDto
	//var denyMessageDto = new Object();
	//denyMessageDto.SessionId = '3c84a7b5-02d6-4ff5-891d-0e8d86d16845';
	//denyMessageDto.ClaimId = 33;
	//denyMessageDto.DenyReason = 'Sick';
	
	path = "/DroidClaim/DroidClaimBL.svc/SendDenyMessage";
		
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(denyMessageDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
	
}

function UpdateClaim(updateClaimInfoDto) {
	// in : UpdateClaimInfoDto
	// out: ClaimIdResultDto
	//var updateClaimInfoDto = new Object();
	//updateClaimInfoDto.SessionId = '3c84a7b5-02d6-4ff5-891d-0e8d86d16845';
	//updateClaimInfoDto.ClaimId = 33;
	//updateClaimInfoDto.ClaimDocImage = '_25561122235404424_c0c536a4-5bf1-47f1-8152-8827d4724b80.jpg';
	
	path = "/DroidClaim/DroidClaimBL.svc/UpdateClaim";
		
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(updateClaimInfoDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);
	
}

function GetSurveyorLocation(claimInfoPKDto){
	// in : ClaimInfoPKDto
	// out: SurveyorLocationResultDto
	//var claimInfoPKDto = new Object();
	//claimInfoPKDto.SessionId = '3c84a7b5-02d6-4ff5-891d-0e8d86d16845';
	//claimInfoPKDto.Id = 33;
	
	path = "/DroidClaim/DroidClaimBL.svc/GetSurveyorLocation";
	
	var input = {
		method : 'post',
		returnedContentType : 'json',
		body: { 
			contentType : 'application/json; charset=utf-8', 
			content : JSON.stringify(claimInfoPKDto)
		}, 
		path : path
	};
	
	return WL.Server.invokeHttp(input);

}